/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.connect5.numerical;

import org.jfonia.connect5.basics.MutableValueNode;
import org.jfonia.connect5.basics.ValueNode;
import org.jfonia.connect5.relations.UnidirectionalABCRelation;

/**
 *
 * @author Rik Bauwens
 */
public class UnidirectionalDoubleSumRelation extends UnidirectionalABCRelation<Double, Double, Double>
{
    public UnidirectionalDoubleSumRelation(ValueNode<Double> a, ValueNode<Double> b, MutableValueNode<Double> c)
    {
            super(a, b, c);
    }

    @Override
    public void updateC()
    {
            c.setValue(a.getValue() + b.getValue(), this);
    }
}
